import 'package:json_annotation/json_annotation.dart';

part 'share_info.g.dart';

@JsonSerializable()
class ShareInfo {

  final String title;
  final String desc;
  final String icon;      //缩略图
  final String image;     //图片
  final String platform;  //平台
  final int shareType;    //3:图文 4：图文+链接
  final String url;

  ShareInfo({
    this.title,
    this.desc,
    this.icon,
    this.image,
    this.platform,
    this.shareType,
    this.url
});

  factory ShareInfo.fromJson(Map<String, dynamic> json) =>
      _$ShareInfoFromJson(json);

  Map<String, dynamic> toJson() => _$ShareInfoToJson(this);
}